package com.zhz.controller;

import com.zhz.entity.User;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.HashMap;
import java.util.Map;

/**
 * @author zhouhengzhe
 * @description:
 * @date 2021/11/30 下午8:07
 * @since v1
 */
public class ZhzBootController {
	@RequestMapping("/hello")
	public String hello () {
		return "hello";
	}

	@RequestMapping("/tuling")
	public String testTuling() {
		return "tuling";
	}

	@RequestMapping("/getUser")
	public User getUser(@RequestBody User user) {
		return user;
	}

	@RequestMapping("/returnJson")
	public Object returnJson() {
		Map<String,String> retMap = new HashMap<>();
		retMap.put("name","张三");
		return retMap;
	}
}
